package org.lgiavedoni.android.franq.event.generation.phone;

import org.lgiavedoni.android.franq.core.listener.PhoneBroadcastUserSafeListener;
import org.lgiavedoni.android.franq.event.PhoneMove;
import org.lgiavedoni.android.franq.service.event.EventService;

import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;

public class ScreenLockListener extends PhoneBroadcastUserSafeListener {

	@Override
	public IntentFilter getListenetFilter() {
		return new IntentFilter(Intent.ACTION_SCREEN_ON);
	}

	@Override
	public void _onReceive(Context arg0, Intent intent) {
		EventService.inst.fireEvent(new PhoneMove());
	}

}
